package com.wsz.logistic.mapper;

import com.wsz.logistic.bean.City;
import com.wsz.logistic.bean.District;

import java.util.List;

public interface DistrictMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(District record);

    int insertSelective(District record);

    District selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(District record);

    int updateByPrimaryKey(District record);

    List<District> getAll(City city);

    List<District> getAll();

    List<District> getAllByCId(Integer cityId);

    District getByName(String name);
}